package org.webbase.report.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.webbase.report.pojo.Form;
import org.webbase.report.pojo.FormHis;
import org.webbase.report.service.FormHisService;
import org.webbase.system.web.ModelAction;

@Controller
@RequestMapping(value="/report/formHis")
public class FormHisAction extends ModelAction<FormHis> {
	
	@Autowired private FormHisService formHisService;
	
	//跳到sql列表页
	@RequestMapping(method=RequestMethod.GET)
	public String list() {
		return "reports/reports-history-list";
	}
	
	@RequestMapping(value = "/query", method = RequestMethod.POST)
	public String query(Form param) {
		formHisService.find(getPaginator());
		return pagin(getPaginator());
	}
	
}
